<%= render 'public/flash_notice' %>
<div class="comm-box">
<%= form_for [:cpanel, @banner], html: {multipart: true, role: 'form',class:'form-horizontal' } do |f| %>
  <div class="form-group">
    <%= f.label :banner图片, class:'col-sm-2 control-label' %>
    <div class="col-sm-4">
    <%= f.file_field :img %>
    </div>
  </div>
  <div class="form-group">
    <%= f.label :banner位置, class:'col-sm-2 control-label' %>
    <div class="col-sm-4">
    <%= f.select(:category, banner_select_for,{},{class: 'form-control'}) %>
    </div>
  </div>
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <%= f.submit '提交',class:'btn btn-primary' %>
    </div>
  </div>
<% end %>
</div>